<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.0.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="d1"></div>
		<script type="text/javascript">
			let div = $('#d1');
			console.log(div);

			let div2 = document.querySelector("#d1");
			console.dir(div2);

			//--------DOM对象转jquery对象----$(DOM对象)------------------------------------------
			console.log($(div2));
			
			//--------jquery对象转DOM对象----$(DOM对象)------------------------------------------
			console.log(div[0]);
		</script>
	</body>
</html>
